<?php

namespace app\home\controller;
use app\common\model\Category;
use think\Controller;

use function app\adminapi\controller\get_tree_list;

class Base extends Controller
{
    //
    public function __construct()
    {
        parent::__construct();
        $data=Category::select();
        $data=get_tree_list($data->toArray());
        $this->assign('list',$data);
    }
}
